Data Tutorial 4: Cellblock

 

Introduction:

jit.cellblock - This object provides a visual interface to a 2-dimensional matrix of data, where each data point (or “cell”) can contain any of the data types used in Max. The grid resembles a spreadsheet from Microsoft's Excel.

The jit.cellblock object fills a special need in Max - a space-efficient display of Max values, with the ability to select or edit them visually within the patch.

 

Structural messages and setup:

Many of the structural settings of the jit.cellblock are available for programmatic control.

 

Storing and retrieving values:

The easiest way to select a cell is to click on it, like you would in a spreadsheet. When you select a new cell, the coordinates are outputted from the left outlet.

jit.cellblock is useful partly because it provides a large set of user options for selecting and manipulating data in a cell. If you don't want the user to be able to edit the values in the cells, you can set the jit.cellblock object to “readonly 1” with a message.

 

Selection and output options:

In order to be as flexible as possible, jit.cellblock has several selection and output modes. The selection mode (set with the “selmode” attribute) defaults to selecting a single cell (known as “one cell select” mode.) However, there are six different options for cell selection:

For output modes, there are three different modes: